package util;

import java.util.concurrent.TimeUnit;

public class TimeUtilTest {
	public static void main(String[] args) {
		System.out.println("1秒是多少毫秒？答："+TimeUnit.MILLISECONDS.convert(1, TimeUnit.SECONDS));
		System.out.println("2小时是多少秒？答："+TimeUnit.SECONDS.convert(2, TimeUnit.HOURS));
		System.out.println(System.currentTimeMillis()/1000);
	}
}
